package com.ktjy5.service;

import com.ktjy5.entity.StorageRecord;
import com.ktjy5.mapper.StorageRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/11  10:03
 */
@Service("storageRecordService")
@Transactional
public class StorageRecordServiceImpl implements StorageRecordService {
    @Autowired
    private StorageRecordMapper storageRecordMapper;
    @Override
    public int insert(StorageRecord record) {
        return storageRecordMapper.insert(record);
    }

    @Override
    public int delete(Integer id) {
        return storageRecordMapper.delete(id);
    }

    @Override
    public int update(StorageRecord record) {
        return storageRecordMapper.update(record);
    }
}
